#pragma once
#include "stdafx.h"
#include "Script.h"
#include "Model.h"

class Component;
class LuaScript;

/*
	Logic class is not implement.
	In this class, only load default.lua simply and call Initial function in lua script pre frame.
*/

class Logic : public Component
{
private:
	Logic(const Logic&);

public:
	typedef boost::shared_ptr<Logic> sPtr;
	Logic(void);
	~Logic(void);
	void AddedToObject();
	void Initial(const Message&);
	void InitialGameData(const Message&);
	bool Frame();
private:
	boost::shared_ptr<LuaScript> m_luaScript;
};